package dss;

/**
 * @author name:dss
 * @version 1.0
 * @description: TODO
 * 用xml的方式实现一下把类交给Spring管理，并给User类注入Dog属性（bean标签、property标签）
 * @date 2022/8/222022/8/22
 */

    public class Dog {
        private String name;
        private String breed;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getBreed() {
            return breed;
        }

        public void setBreed(String breed) {
            this.breed = breed;
        }

        @Override
        public String toString() {
            return "Dog{" +
                    "name='" + name + '\'' +
                    ", breed='" + breed + '\'' +
                    '}';
        }
    }
